-
Notifications
You must be signed in to change notification settings - Fork 40
/
DbSet`1.xml
699 lines (698 loc) · 41.7 KB
/
DbSet`1.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
<Type Name="DbSet<TEntity>" FullName="System.Data.Entity.DbSet<TEntity>">
<TypeSignature Language="C#" Value="public class DbSet<TEntity> : System.Data.Entity.Infrastructure.DbQuery<TEntity>, System.Collections.Generic.IEnumerable<TEntity>, System.Data.Entity.IDbSet<TEntity>, System.Linq.IQueryable<TEntity> where TEntity : class" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit DbSet`1<class TEntity> extends System.Data.Entity.Infrastructure.DbQuery`1<!TEntity> implements class System.Collections.Generic.IEnumerable`1<!TEntity>, class System.Collections.IEnumerable, class System.Data.Entity.IDbSet`1<!TEntity>, class System.Linq.IQueryable, class System.Linq.IQueryable`1<!TEntity>" />
<TypeSignature Language="DocId" Value="T:System.Data.Entity.DbSet`1" />
<TypeSignature Language="VB.NET" Value="Public Class DbSet(Of TEntity)
Inherits DbQuery(Of TEntity)
Implements IDbSet(Of TEntity), IEnumerable(Of TEntity), IQueryable(Of TEntity)" />
<TypeSignature Language="F#" Value="type DbSet<'Entity (requires 'Entity : null)> = class
 inherit DbQuery<'Entity (requires 'Entity : null)>
 interface IDbSet<'Entity (requires 'Entity : null)>
 interface IQueryable<'Entity (requires 'Entity : null)>
 interface seq<'Entity (requires 'Entity : null)>
 interface IQueryable
 interface IEnumerable" />
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>4.3.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeParameters>
<TypeParameter Name="TEntity">
<Constraints>
<ParameterAttribute>ReferenceTypeConstraint</ParameterAttribute>
</Constraints>
</TypeParameter>
</TypeParameters>
<Base>
<BaseTypeName>System.Data.Entity.Infrastructure.DbQuery<TEntity></BaseTypeName>
<BaseTypeArguments>
<BaseTypeArgument TypeParamName="TResult">TEntity</BaseTypeArgument>
</BaseTypeArguments>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.Collections.Generic.IEnumerable<T></InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.Collections.Generic.IEnumerable<TEntity></InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.Collections.IEnumerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.Data.Entity.IDbSet<TEntity></InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.Linq.IQueryable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.Linq.IQueryable<TEntity></InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification="Name is intentional")</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="entity-framework-4.3.1;entity-framework-5.0.0">
<AttributeName>System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="Casing is intentional")</AttributeName>
</Attribute>
</Attributes>
<Docs>
<typeparam name="TEntity"> The type that defines the set. </typeparam>
<summary>
A DbSet represents the collection of all entities in the context, or that can be queried from the
database, of a given type. DbSet objects are created from a DbContext using the DbContext.Set method.
</summary>
<remarks>
Note that DbSet does not support MEST (Multiple Entity Sets per Type) meaning that there is always a
one-to-one correlation between a type and a set.
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected DbSet ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.#ctor" />
<MemberSignature Language="VB.NET" Value="Protected Sub New ()" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>
Creates an instance of a <see cref="T:System.Data.Entity.DbSet`1" /> when called from the constructor of a derived
type that will be used as a test double for DbSets. Methods and properties that will be used by the
test double must be implemented by the test double except AsNoTracking, AsStreaming, an Include where
the default implementation is a no-op.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Add">
<MemberSignature Language="C#" Value="public virtual TEntity Add (TEntity entity);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance !TEntity Add(!TEntity entity) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.Add(`0)" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function Add (entity As TEntity) As TEntity" />
<MemberSignature Language="F#" Value="abstract member Add : 'Entity -> 'Entity
override this.Add : 'Entity -> 'Entity" Usage="dbSet.Add entity" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.Data.Entity.IDbSet`1.Add(`0)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>4.3.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>TEntity</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="entity" Type="TEntity" />
</Parameters>
<Docs>
<param name="entity">The entity to add.</param>
<summary>
Adds the given entity to the context underlying the set in the Added state such that it will
be inserted into the database when SaveChanges is called.
</summary>
<returns>The entity.</returns>
<remarks>
Note that entities that are already in the context in some other state will have their state set
to Added. Add is a no-op if the entity is already in the context in the Added state.
</remarks>
<inheritdoc />
</Docs>
</Member>
<Member MemberName="AddRange">
<MemberSignature Language="C#" Value="public virtual System.Collections.Generic.IEnumerable<TEntity> AddRange (System.Collections.Generic.IEnumerable<TEntity> entities);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Collections.Generic.IEnumerable`1<!TEntity> AddRange(class System.Collections.Generic.IEnumerable`1<!TEntity> entities) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.AddRange(System.Collections.Generic.IEnumerable{`0})" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function AddRange (entities As IEnumerable(Of TEntity)) As IEnumerable(Of TEntity)" />
<MemberSignature Language="F#" Value="abstract member AddRange : seq<'Entity (requires 'Entity : null)> -> seq<'Entity (requires 'Entity : null)>
override this.AddRange : seq<'Entity (requires 'Entity : null)> -> seq<'Entity (requires 'Entity : null)>" Usage="dbSet.AddRange entities" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.Generic.IEnumerable<TEntity></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="entities" Type="System.Collections.Generic.IEnumerable<TEntity>" Index="0" FrameworkAlternate="entity-framework-6.2.0" />
</Parameters>
<Docs>
<param name="entities">The collection of entities to add.</param>
<summary>
Adds the given collection of entities into context underlying the set with each entity being put into
the Added state such that it will be inserted into the database when SaveChanges is called.
</summary>
<returns>
The collection of entities.
</returns>
<remarks>
Note that if <see cref="P:System.Data.Entity.Infrastructure.DbContextConfiguration.AutoDetectChangesEnabled" /> is set to true (which is
the default), then DetectChanges will be called once before adding any entities and will not be called
again. This means that in some situations AddRange may perform significantly better than calling
Add multiple times would do.
Note that entities that are already in the context in some other state will have their state set to
Added. AddRange is a no-op for entities that are already in the context in the Added state.
</remarks>
</Docs>
</Member>
<Member MemberName="Attach">
<MemberSignature Language="C#" Value="public virtual TEntity Attach (TEntity entity);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance !TEntity Attach(!TEntity entity) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.Attach(`0)" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function Attach (entity As TEntity) As TEntity" />
<MemberSignature Language="F#" Value="abstract member Attach : 'Entity -> 'Entity
override this.Attach : 'Entity -> 'Entity" Usage="dbSet.Attach entity" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.Data.Entity.IDbSet`1.Attach(`0)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>4.3.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>TEntity</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="entity" Type="TEntity" />
</Parameters>
<Docs>
<param name="entity">The entity to attach.</param>
<summary>
Attaches the given entity to the context underlying the set. That is, the entity is placed
into the context in the Unchanged state, just as if it had been read from the database.
</summary>
<returns>The entity.</returns>
<remarks>
Attach is used to repopulate a context with an entity that is known to already exist in the database.
SaveChanges will therefore not attempt to insert an attached entity into the database because
it is assumed to already be there.
Note that entities that are already in the context in some other state will have their state set
to Unchanged. Attach is a no-op if the entity is already in the context in the Unchanged state.
</remarks>
<inheritdoc />
</Docs>
</Member>
<Member MemberName="Create">
<MemberSignature Language="C#" Value="public virtual TEntity Create ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance !TEntity Create() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.Create" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function Create () As TEntity" />
<MemberSignature Language="F#" Value="abstract member Create : unit -> 'Entity
override this.Create : unit -> 'Entity" Usage="dbSet.Create " />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.Data.Entity.IDbSet`1.Create</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>4.3.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>TEntity</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>
Creates a new instance of an entity for the type of this set.
Note that this instance is NOT added or attached to the set.
The instance returned will be a proxy if the underlying context is configured to create
proxies and the entity type meets the requirements for creating a proxy.
</summary>
<returns>The entity instance, which may be a proxy.</returns>
<remarks>To be added.</remarks>
<inheritdoc />
</Docs>
</Member>
<Member MemberName="Create<TDerivedEntity>">
<MemberSignature Language="C#" Value="public virtual TDerivedEntity Create<TDerivedEntity> () where TDerivedEntity : class, TEntity;" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance !!TDerivedEntity Create<class (!TEntity) TDerivedEntity>() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.Create``1" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function Create(Of TDerivedEntity As {Class, TEntity}) () As TDerivedEntity" />
<MemberSignature Language="F#" Value="abstract member Create : unit -> 'DerivedEntity
override this.Create : unit -> 'DerivedEntity" Usage="dbSet.Create " />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.Data.Entity.IDbSet`1.Create``1</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>4.3.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>TDerivedEntity</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="TDerivedEntity">
<Constraints>
<ParameterAttribute>ReferenceTypeConstraint</ParameterAttribute>
<BaseTypeName>TEntity</BaseTypeName>
</Constraints>
</TypeParameter>
</TypeParameters>
<Parameters />
<Docs>
<typeparam name="TDerivedEntity">The type of entity to create.</typeparam>
<summary>
Creates a new instance of an entity for the type of this set or for a type derived
from the type of this set.
Note that this instance is NOT added or attached to the set.
The instance returned will be a proxy if the underlying context is configured to create
proxies and the entity type meets the requirements for creating a proxy.
</summary>
<returns> The entity instance, which may be a proxy. </returns>
<remarks>To be added.</remarks>
<inheritdoc />
</Docs>
</Member>
<Member MemberName="Equals">
<MemberSignature Language="C#" Value="public override bool Equals (object obj);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool Equals(object obj) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.Equals(System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Overrides Function Equals (obj As Object) As Boolean" />
<MemberSignature Language="F#" Value="override this.Equals : obj -> bool" Usage="dbSet.Equals obj" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>4.3.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="obj" Type="System.Object" />
</Parameters>
<Docs>
<param name="obj">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<inheritdoc />
</Docs>
</Member>
<Member MemberName="Find">
<MemberSignature Language="C#" Value="public virtual TEntity Find (params object[] keyValues);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance !TEntity Find(object[] keyValues) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.Find(System.Object[])" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function Find (ParamArray keyValues As Object()) As TEntity" />
<MemberSignature Language="F#" Value="abstract member Find : obj[] -> 'Entity
override this.Find : obj[] -> 'Entity" Usage="dbSet.Find keyValues" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.Data.Entity.IDbSet`1.Find(System.Object[])</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>4.3.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>TEntity</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="keyValues" Type="System.Object[]">
<Attributes>
<Attribute FrameworkAlternate="entity-framework-4.3.1">
<AttributeName>System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="keyValues"> The values of the primary key for the entity to be found. </param>
<summary>
Finds an entity with the given primary key values.
If an entity with the given primary key values exists in the context, then it is
returned immediately without making a request to the store. Otherwise, a request
is made to the store for an entity with the given primary key values and this entity,
if found, is attached to the context and returned. If no entity is found in the
context or the store, then null is returned.
</summary>
<returns> The entity found, or null. </returns>
<remarks>
The ordering of composite key values is as defined in the EDM, which is in turn as defined in
the designer, by the Code First fluent API, or by the DataMember attribute.
</remarks>
<exception cref="T:System.InvalidOperationException">Thrown if the context has been disposed.</exception>
</Docs>
</Member>
<Member MemberName="FindAsync">
<MemberSignature Language="C#" Value="public virtual System.Threading.Tasks.Task<TEntity> FindAsync (params object[] keyValues);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Threading.Tasks.Task`1<!TEntity> FindAsync(object[] keyValues) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.FindAsync(System.Object[])" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function FindAsync (ParamArray keyValues As Object()) As Task(Of TEntity)" />
<MemberSignature Language="F#" Value="abstract member FindAsync : obj[] -> System.Threading.Tasks.Task<'Entity (requires 'Entity : null)>
override this.FindAsync : obj[] -> System.Threading.Tasks.Task<'Entity (requires 'Entity : null)>" Usage="dbSet.FindAsync keyValues" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<TEntity></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="keyValues" Type="System.Object[]" Index="0" FrameworkAlternate="entity-framework-6.2.0">
<Attributes>
<Attribute FrameworkAlternate="entity-framework-6.2.0">
<AttributeName>System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="keyValues"> The values of the primary key for the entity to be found. </param>
<summary>
Asynchronously finds an entity with the given primary key values.
If an entity with the given primary key values exists in the context, then it is
returned immediately without making a request to the store. Otherwise, a request
is made to the store for an entity with the given primary key values and this entity,
if found, is attached to the context and returned. If no entity is found in the
context or the store, then null is returned.
</summary>
<returns> A task that represents the asynchronous find operation. The task result contains the entity found, or null. </returns>
<remarks>
The ordering of composite key values is as defined in the EDM, which is in turn as defined in
the designer, by the Code First fluent API, or by the DataMember attribute.
Multiple active operations on the same context instance are not supported. Use 'await' to ensure
that any asynchronous operations have completed before calling another method on this context.
</remarks>
</Docs>
</Member>
<Member MemberName="FindAsync">
<MemberSignature Language="C#" Value="public virtual System.Threading.Tasks.Task<TEntity> FindAsync (System.Threading.CancellationToken cancellationToken, params object[] keyValues);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Threading.Tasks.Task`1<!TEntity> FindAsync(valuetype System.Threading.CancellationToken cancellationToken, object[] keyValues) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.FindAsync(System.Threading.CancellationToken,System.Object[])" />
<MemberSignature Language="F#" Value="abstract member FindAsync : System.Threading.CancellationToken * obj[] -> System.Threading.Tasks.Task<'Entity (requires 'Entity : null)>
override this.FindAsync : System.Threading.CancellationToken * obj[] -> System.Threading.Tasks.Task<'Entity (requires 'Entity : null)>" Usage="dbSet.FindAsync (cancellationToken, keyValues)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<TEntity></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="0" FrameworkAlternate="entity-framework-6.2.0" />
<Parameter Name="keyValues" Type="System.Object[]" Index="1" FrameworkAlternate="entity-framework-6.2.0">
<Attributes>
<Attribute FrameworkAlternate="entity-framework-6.2.0">
<AttributeName>System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="cancellationToken">
A <see cref="T:System.Threading.CancellationToken" /> to observe while waiting for the task to complete.
</param>
<param name="keyValues"> The values of the primary key for the entity to be found. </param>
<summary>
Asynchronously finds an entity with the given primary key values.
If an entity with the given primary key values exists in the context, then it is
returned immediately without making a request to the store. Otherwise, a request
is made to the store for an entity with the given primary key values and this entity,
if found, is attached to the context and returned. If no entity is found in the
context or the store, then null is returned.
</summary>
<returns> A task that represents the asynchronous find operation. The task result contains the entity found, or null. </returns>
<remarks>
The ordering of composite key values is as defined in the EDM, which is in turn as defined in
the designer, by the Code First fluent API, or by the DataMember attribute.
Multiple active operations on the same context instance are not supported. Use 'await' to ensure
that any asynchronous operations have completed before calling another method on this context.
</remarks>
<exception cref="T:System.InvalidOperationException">Thrown if the context has been disposed.</exception>
</Docs>
</Member>
<Member MemberName="GetHashCode">
<MemberSignature Language="C#" Value="public override int GetHashCode ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetHashCode() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.GetHashCode" />
<MemberSignature Language="VB.NET" Value="Public Overrides Function GetHashCode () As Integer" />
<MemberSignature Language="F#" Value="override this.GetHashCode : unit -> int" Usage="dbSet.GetHashCode " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>4.3.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<inheritdoc />
</Docs>
</Member>
<Member MemberName="GetType">
<MemberSignature Language="C#" Value="public Type GetType ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Type GetType() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.GetType" />
<MemberSignature Language="VB.NET" Value="Public Function GetType () As Type" />
<MemberSignature Language="F#" Value="override this.GetType : unit -> Type" Usage="dbSet.GetType " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>4.3.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="entity-framework-6.2.0">
<AttributeName>System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Type</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<inheritdoc />
</Docs>
</Member>
<Member MemberName="Local">
<MemberSignature Language="C#" Value="public virtual System.Collections.ObjectModel.ObservableCollection<TEntity> Local { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.ObjectModel.ObservableCollection`1<!TEntity> Local" />
<MemberSignature Language="DocId" Value="P:System.Data.Entity.DbSet`1.Local" />
<MemberSignature Language="VB.NET" Value="Public Overridable ReadOnly Property Local As ObservableCollection(Of TEntity)" />
<MemberSignature Language="F#" Value="member this.Local : System.Collections.ObjectModel.ObservableCollection<'Entity (requires 'Entity : null)>" Usage="System.Data.Entity.DbSet<'Entity (requires 'Entity : null)>.Local" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:System.Data.Entity.IDbSet`1.Local</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>4.3.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.ObjectModel.ObservableCollection<TEntity></ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets an <see cref="T:System.Collections.ObjectModel.ObservableCollection`1" /> that represents a local view of all Added, Unchanged,
and Modified entities in this set. This local view will stay in sync as entities are added or
removed from the context. Likewise, entities added to or removed from the local view will automatically
be added to or removed from the context.
</summary>
<value>The local view.</value>
<remarks>
This property can be used for data binding by populating the set with data, for example by using the Load
extension method, and then binding to the local data through this property. For WPF bind to this property
directly. For Windows Forms bind to the result of calling ToBindingList on this property
</remarks>
<inheritdoc />
</Docs>
</Member>
<Member MemberName="op_Implicit">
<MemberSignature Language="C#" Value="public static implicit operator System.Data.Entity.DbSet (System.Data.Entity.DbSet<TEntity> entry);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname class System.Data.Entity.DbSet op_Implicit(class System.Data.Entity.DbSet`1<!TEntity> entry) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.op_Implicit(System.Data.Entity.DbSet{`0})~System.Data.Entity.DbSet" />
<MemberSignature Language="VB.NET" Value="Public Shared Widening Operator CType (entry As DbSet(Of TEntity)) As DbSet" />
<MemberSignature Language="F#" Value="static member op_Implicit : System.Data.Entity.DbSet<'Entity (requires 'Entity : null)> -> System.Data.Entity.DbSet" Usage="System.Data.Entity.DbSet<'Entity (requires 'Entity : null)>.op_Implicit entry" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>4.3.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2225:OperatorOverloadsHaveNamedAlternates", Justification="Intentionally just implicit to reduce API clutter.")</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="entity-framework-6.2.0">
<AttributeName>System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Data.Entity.DbSet</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="entry" Type="System.Data.Entity.DbSet<TEntity>" />
</Parameters>
<Docs>
<param name="entry">The generic set object.</param>
<summary>
Returns the equivalent non-generic <see cref="T:System.Data.Entity.DbSet" /> object.
</summary>
<returns> The non-generic set object. </returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Remove">
<MemberSignature Language="C#" Value="public virtual TEntity Remove (TEntity entity);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance !TEntity Remove(!TEntity entity) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.Remove(`0)" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function Remove (entity As TEntity) As TEntity" />
<MemberSignature Language="F#" Value="abstract member Remove : 'Entity -> 'Entity
override this.Remove : 'Entity -> 'Entity" Usage="dbSet.Remove entity" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.Data.Entity.IDbSet`1.Remove(`0)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>4.3.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>TEntity</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="entity" Type="TEntity" />
</Parameters>
<Docs>
<param name="entity">The entity to remove.</param>
<summary>
Marks the given entity as Deleted such that it will be deleted from the database when SaveChanges
is called. Note that the entity must exist in the context in some other state before this method
is called.
</summary>
<returns>The entity.</returns>
<remarks>
Note that if the entity exists in the context in the Added state, then this method
will cause it to be detached from the context. This is because an Added entity is assumed not to
exist in the database such that trying to delete it does not make sense.
</remarks>
<inheritdoc />
</Docs>
</Member>
<Member MemberName="RemoveRange">
<MemberSignature Language="C#" Value="public virtual System.Collections.Generic.IEnumerable<TEntity> RemoveRange (System.Collections.Generic.IEnumerable<TEntity> entities);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Collections.Generic.IEnumerable`1<!TEntity> RemoveRange(class System.Collections.Generic.IEnumerable`1<!TEntity> entities) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.RemoveRange(System.Collections.Generic.IEnumerable{`0})" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function RemoveRange (entities As IEnumerable(Of TEntity)) As IEnumerable(Of TEntity)" />
<MemberSignature Language="F#" Value="abstract member RemoveRange : seq<'Entity (requires 'Entity : null)> -> seq<'Entity (requires 'Entity : null)>
override this.RemoveRange : seq<'Entity (requires 'Entity : null)> -> seq<'Entity (requires 'Entity : null)>" Usage="dbSet.RemoveRange entities" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.Generic.IEnumerable<TEntity></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="entities" Type="System.Collections.Generic.IEnumerable<TEntity>" Index="0" FrameworkAlternate="entity-framework-6.2.0" />
</Parameters>
<Docs>
<param name="entities">The collection of entities to delete.</param>
<summary>
Removes the given collection of entities from the context underlying the set with each entity being put into
the Deleted state such that it will be deleted from the database when SaveChanges is called.
</summary>
<returns>
The collection of entities.
</returns>
<remarks>
Note that if <see cref="P:System.Data.Entity.Infrastructure.DbContextConfiguration.AutoDetectChangesEnabled" /> is set to true (which is
the default), then DetectChanges will be called once before delete any entities and will not be called
again. This means that in some situations RemoveRange may perform significantly better than calling
Remove multiple times would do.
Note that if any entity exists in the context in the Added state, then this method
will cause it to be detached from the context. This is because an Added entity is assumed not to
exist in the database such that trying to delete it does not make sense.
</remarks>
</Docs>
</Member>
<Member MemberName="SqlQuery">
<MemberSignature Language="C#" Value="public virtual System.Data.Entity.Infrastructure.DbSqlQuery<TEntity> SqlQuery (string sql, params object[] parameters);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Data.Entity.Infrastructure.DbSqlQuery`1<!TEntity> SqlQuery(string sql, object[] parameters) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Data.Entity.DbSet`1.SqlQuery(System.String,System.Object[])" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function SqlQuery (sql As String, ParamArray parameters As Object()) As DbSqlQuery(Of TEntity)" />
<MemberSignature Language="F#" Value="abstract member SqlQuery : string * obj[] -> System.Data.Entity.Infrastructure.DbSqlQuery<'Entity (requires 'Entity : null)>
override this.SqlQuery : string * obj[] -> System.Data.Entity.Infrastructure.DbSqlQuery<'Entity (requires 'Entity : null)>" Usage="dbSet.SqlQuery (sql, parameters)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>EntityFramework</AssemblyName>
<AssemblyVersion>4.3.1.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Data.Entity.Infrastructure.DbSqlQuery<TEntity></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="sql" Type="System.String" />
<Parameter Name="parameters" Type="System.Object[]">
<Attributes>
<Attribute FrameworkAlternate="entity-framework-4.3.1">
<AttributeName>System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="sql"> The SQL query string. </param>
<param name="parameters">
The parameters to apply to the SQL query string. If output parameters are used, their values will
not be available until the results have been read completely. This is due to the underlying behavior
of DbDataReader, see http://go.microsoft.com/fwlink/?LinkID=398589 for more details.
</param>
<summary>
Creates a raw SQL query that will return entities in this set. By default, the
entities returned are tracked by the context; this can be changed by calling
AsNoTracking on the <see cref="T:System.Data.Entity.Infrastructure.DbSqlQuery`1" /> returned.
Note that the entities returned are always of the type for this set and never of
a derived type. If the table or tables queried may contain data for other entity
types, then the SQL query must be written appropriately to ensure that only entities of
the correct type are returned.
As with any API that accepts SQL it is important to parameterize any user input to protect against a SQL injection attack. You can include parameter place holders in the SQL query string and then supply parameter values as additional arguments. Any parameter values you supply will automatically be converted to a DbParameter.
context.Blogs.SqlQuery("SELECT * FROM dbo.Posts WHERE Author = @p0", userSuppliedAuthor);
Alternatively, you can also construct a DbParameter and supply it to SqlQuery. This allows you to use named parameters in the SQL query string.
context.Blogs.SqlQuery("SELECT * FROM dbo.Posts WHERE Author = @author", new SqlParameter("@author", userSuppliedAuthor));
</summary>
<returns>
A <see cref="T:System.Data.Entity.Infrastructure.DbSqlQuery`1" /> object that will execute the query when it is enumerated.
</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>